﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace XtremBiking.Web.Models.Usuarios
{
    public class LoggedUser
    {
        /// <summary>
        /// Gets or sets user identification
        /// </summary>
        [HiddenInput(DisplayValue = true)]
        [Key]
        public int UserId { get; set; }

        /// <summary>
        /// Gets or sets login name (or user name)
        /// </summary>
        [Display(Name = "DisplayLoginName", ResourceType = typeof(XtremBiking.Recursos.Modelos.Usuarios.LoggedUser))]
        public String LoginName { get; set; }


        /// <summary>
        /// Gets or sets name will be displayed in the UI
        /// </summary>
        [Display(Name = "DisplayName", ResourceType = typeof(XtremBiking.Recursos.Modelos.Usuarios.LoggedUser))]
        public string DisplayName { get; set; }

        /// <summary>
        /// Gets or sets user email
        /// </summary>
        [Display(Name = "DisplayEmail", ResourceType = typeof(XtremBiking.Recursos.Modelos.Usuarios.LoggedUser))]
        public string Email { get; set; }


        /// <summary>
        /// Gets or sets user password
        /// </summary>
        [DataType(DataType.Password)]
        [Display(Name = "DisplayPassword", ResourceType = typeof(XtremBiking.Recursos.Modelos.Usuarios.LoggedUser))]
        public string Password { get; set; }

        ///// <summary>
        ///// Gets or sets company to which the user will be assigned
        ///// </summary>
        //[Display(Name = "DisplayCompany", ResourceType = typeof(Phoenix.Resources.BackOffice.PresentationModels.Users.ViewUserPresentation))]
        //public ViewCompaniesPresentation Company { get; set; }


        ///// <summary>
        ///// Gets or sets user status
        ///// </summary>
        //[Display(Name = "DisplayStatus", ResourceType = typeof(Phoenix.Resources.BackOffice.PresentationModels.Users.ViewUserPresentation))]
        //public UserStatus Status { get; set; }

        /// <summary>
        /// Gets or sets profile identification
        /// </summary>
        public int ProfileId { get; set; }

        /// <summary>
        /// Gets or sets user last login date time
        /// </summary>
        public DateTime DateLastLogin { get; set; }
    }
}